<%--
  Created by IntelliJ IDEA.
  User: a7823
  Date: 2020/11/28
  Time: 11:02
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>购物商城-登录</title>
    <base href="${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}/"/>
    <style>
        * {
            margin: 0 auto;
            padding:0;
            list-style: none;
        }
        .header-a{
            text-decoration: none;
            color: #CCCCCC;
        }
        .header-a:hover{
            color: black;
        }
        .header_li1{
            float: left;
            line-height: 30px;
            margin-left: 24px;
            text-align: center;
        }
        .header_li1 a{
            color:#FFFFFF;
            text-decoration: none;
            font-size: 13px;
            border-right: #CCCCCC;
        }
        .header_li1 a:hover{
            color:#FFFF00;
        }
    </style>
    <script src="js/jquery-3.1.1.min.js"></script>
    <script>
        $(function () {
            var userName = "${user.name}"
            var text = "[<a href= 'toLoginPage'>登录</a>]&nbsp;[<a href= 'toRegisterPage'>免费注册</a>]"
            if(userName != "") {
                text = userName + "&nbsp;&nbsp[<a href= 'logout'>注销</a>]";
            }
            $("#loginSpan").html(text)
        })
    </script>
</head>
<body>

<div style="height: 32px;width: 100%;background-color: #EFEFEF;">
    <!--头页的第一部分-->
    <div style="height: 32px;width: 1000px;font-size: 12px;line-height: 32px;text-align:right">
        官方网站<a href="https://www.douyu.com/directory/myFollow">http://gz.gec-edu.org/?gzbdgzbdyueqianpc23</a>
        <span id="loginSpan"></span>
        [<a href="toShopCarPage">我的购物车</a>]
        [<a href="toOrderDetailPage">我的订单</a>]
        [<a href="#">设置为首页</a>]
        [<a href="#">加入收藏</a>]
    </div>
    <!--头页的第二部分-->
    <div style="width: 1000px;height: 150px;;position: relative">
        <img src="images/article/logo.gif">
        <img src="images/banner.gif" alt="" style="margin-top: 10px">

        <div style="position: absolute;right: 50px;top: 30px;font-size: 12px">
            <div style="border: 1px solid #CCCCCC;width: 70px;height: 20px;line-height:20px;text-align: center"><a href="#" style="" class = "header-a">关于我们</a></div>
            <div style="margin-top: 10px;border: 1px solid #CCCCCC;width: 70px;height: 20px;line-height:20px;text-align: center"><a href="#" style="" class = "header-a">联系方式</a></div>
        </div>
    </div>
    <!--头页的第三部分-->
    <div style="width: 100%;height: 30px;background-color: #CC3333 ">
        <div style="width: 1000px;height: 30px;">
            <ul>
                <li class="header_li1"><a href="#"> 首页</a></li>
                <li class="header_li1"><a href="getArticleType?type_code=0001"> 护肤</a></li>
                <li class="header_li1"><a href="getArticleType?type_code=0002"> 彩妆</a></li>
                <li class="header_li1"><a href="getArticleType?type_code=0003"> 香氛</a></li>
                <li class="header_li1"><a href="getArticleType?type_code=0004"> 身体护理</a></li>
                <li class="header_li1"><a href="getArticleType?type_code=0005"> 礼盒套装</a></li>
                <li class="header_li1"><a href="getArticleType?type_code=0006"> 母婴专区</a></li>
                <li class="header_li1"><a href="getArticleType?type_code=0007"> 男士专区</a></li>
                <li class="header_li1"><a href="getArticleType?type_code=0008"> 粉底</a></li>
                <li class="header_li1"><a href="getArticleType?type_code=0009"> 粉饼</a></li>
                <li class="header_li1"><a href="getArticleType?type_code=0010"> 睫毛膏</a></li>
                <li class="header_li1"><a href="getArticleType?type_code=0011"> 唇彩</a></li>
                <li class="header_li1"><a href="getArticleType?type_code=0012"> 腮红</a></li>
                <li class="header_li1"><a href="getArticleType?type_code=0013"> 食品保障</a></li>
                <li class="header_li1"><a href="getArticleType?type_code=0014"> 瘦身类</a></li>
                <li class="header_li1"><a href="getArticleType?type_code=0015"> 美容类</a></li>
            </ul>

        </div>

    </div>
</div>

<div style="background-image: url('images/login_bg.jpg');width: 960px;height: 388px;margin-top: 200px;position: relative">
    <%--子绝父相，子类绝对定位，父类相对定位--%>
    <div style="width: 430px;height: 280px;background-color: #FFFFFF;border-left:2px #E0E0DF solid;border-right:2px #E0E0DF solid;position: absolute;left: 480px;top: 70px">
        <div class="c1">
            <p id="p1" style="text-align: right;margin-top: 20px;margin-right: 20px;font-size: 15px;color: rgba(137,125,118,0.8)">还不是商城用户？<a href="toRegisterPage">立即注册</a></p>
            <form action="login" method="post">
                <table style="margin-top: 10px;border-spacing: 0px 20px">
                    <tr>
                        <td>登录名&nbsp;&nbsp;</td>
                        <td><input name="loginName" type="text" style=" width:200px;height:30px" placeholder="请输入邮箱地址"></td>
                    </tr>
                    <tr>
                        <td>密&nbsp;&nbsp;码&nbsp;&nbsp;</td>
                        <td><input name="password" type="password" style=" width:200px;height:30px" placeholder="请输入6-16位密码"></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td><input type="submit" value="登&nbsp;录" style="width: 80px;height: 30px;background-color: #FA9911;color: #FFFFFF;border-color: #FFCC66;border-radius: 3px;font-size: 17px;margin-left: 30px">
                        </td>
                    </tr>
                    <tr>
                        <td></td>
                        <td><span style="color: red;font-size: 14px">${loginMsg}</span></td>
                    </tr>
                    <tr>
                        <td id="td2" colspan="2" style="color: rgba(137,125,118,0.8);font-size: 14px;text-align: center" >
                            疯狂源自梦想，技术成就辉煌&nbsp;&nbsp;<a href="https://www.gec.com">广州粤嵌</a>
                        </td>
                    </tr>
                </table>
            </form>
        </div>

    </div>
</div>
</body>
</html>
